package astnode;

public class AssignStmtNode extends IDStmtNode{

	public AssignStmtNode( int lineNum ) {
		super(lineNum);
	}

	public AssignStmtNode(IDStmtNode idStmtNode) {
		super(idStmtNode);
	}
	//the index of the left expression, identifier is declared in IDStmtNode
	private ExpressionNode index;
	private VariableNode leftValue = null;
	private ExpressionNode rightvalue;
	
	
	public ExpressionNode getIndex() {
		return index;
	}
	public void setIndex(ExpressionNode index) {
		this.index = index;
	}
	public ExpressionNode getRightvalue() {
		return rightvalue;
	}
	public void setRightvalue(ExpressionNode rightvalue) {
		this.rightvalue = rightvalue;
	}

	public VariableNode getLeftValue() {
		return leftValue;
	}

	public void setLeftValue(VariableNode leftValue) {
		this.leftValue = leftValue;
	}

}
